package com.fary.formatter;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

import javax.annotation.Resource;
import java.util.Date;

@Data
@AllArgsConstructor
public class Apple {

    @Resource
    private String name;

    @DateTimeFormat(iso= ISO.DATE)
    private Date date;

}